package com.dingreading.cloud.subject.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-08-01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("app_project")
public class AppProject implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 添加时间
     */
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 应用id
     */
    private String appId;

    /**
     * 应用名
     */
    private String appName;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    private String homeUrl;

    private String appSecret;

    private Integer enabled;

}
